package cn.edu.nit.sys.service.impl;

import cn.edu.nit.sys.entity.Equip;
import cn.edu.nit.sys.mapper.EquipMapper;
import cn.edu.nit.sys.service.EquipService;
import cn.edu.nit.sys.utils.R;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author xiaobai
 * @Date 2022/9/24 20:37
 * @Version 1.0.0
 */
@Service
public class EquipServiceImpl extends ServiceImpl<EquipMapper, Equip> implements EquipService {

    /**
     * 获取设备类型
     * @return
     */
    @Override
    public R getEquipType() {
        List<String> equipType = baseMapper.getEquipType();
        return R.ok(equipType);
    }
}
